<template>
  <div>
    <h1>v-str和v-html</h1>
    <h2 v-text="str">原文显示</h2>
    <span v-html="str">解释后显示</span>
  </div>
</template>

<script>
export default {
  data () {
    return {
      str: '<div>hello Vue</div>'
    }
  }
}
</script>

<style>
</style>